added test for equals