unit test for drawing the output to graphviz