Add test case for circular dependencies