test for circular dependencies