equals and hashcode testing classes