test for object graphs with loops