added a test for GraphvizWrapper
minor refactoring