Add a ton of unit tests for the robot.py class, includes ability to mock
out the context handler in Robot() and some minor fixes and equals
operators needed by the tests.