Test removing circular references.