Implement __eq__
Update tests to use __eq__