test for equals, comparetor, hashcode etc.