started using the unittest module, added some more tests.
Fixed some issues with tests
tests use object comparison