Fixed relational operators and pow function.
Fixed invert test.