testPowerMod added