Added test to check foldRDF_Graph with cycles