outputDiagram in all test cases