Added test for circular references