Opposition leader Anwar Ibrahim says he is willing to testify before the royal commission of inquiry on illegal immigrants in Sabah if he is summoned.