Tclose test with cycles added