added CompareObjects to EqualityExpectation for structural equality