catch AssertionError in tests
AssertionError on power with negative exponent