Improve TeraMath.pow and add tests to check its behaviour