Rename powm arguments and add more tests.