check that foo == foo for all objects