Add root test for circular references