Added equals and hashCode test