Ported `ObjectComparator` tests.