added test for diffObjects method