add test to make sure two objects has the same hashCode when they are equal