LibraryTest: Added test cases for powMod().