Move test_equals to tests/test_generic.py