add test equals and hash code