I don't think we should include a cycle in this test input.  The TopologicalOrderIterator Javadoc states that the results with cyclic input are undefined, so the test shouldn't rely on the current behavior of ignoring the cyclic component.