test cases for equals, hash code and compare