test object equivalence