 <p>This looks like a case of reference versus value comparison. If you have two different instances of objects with the same property values, by default they will never be 'equal' using default comparisons. You have to compare the <em>values</em> of the objects. Try writing code to compare the values of each instance.</p>