Added test to check for wrong shape in power function.