Fix element ordering diff in equals
Add tests for contains and equals