add tests for equals and hashCode methods