Added test cases for graph structures