Added test case for Graph