wrote tests for getGraphs