Added tests for pow and log
Fixed bugs in pow