Added test for subgraphs