test: add result field to mod exp and inv