Added a test for Graph.reset