Added test for comparison, fixed behaviour of __eq__ to correctly reflect object equality.