Add object equality. Fix tests.