added a test for the graph