Test for circular references exceptions