check that foo.__eq__ exists and foo == foo for all objects