added unit test to create png file based on the given graph definition