Fixed bugs with test case project.

Fixed some bugs. Added more test cases. Still need to fix some.
Multiple fixes
Found issue with negative exponents.