added basic test for Graph