added __eq__ and __str__ and test, which succeeds