completed the test_graph test method