Add tentative test file that checks cartesian

fixed non-existent local variable
Add more unittesting. Separate tests for hand since the type of testing for hands I'll write this time will be not necessarily general enough.