Added test for comparison, fixed behaviour of __eq__ to correctly reflec...

...t object equality.