adding test for when there are no nodes in the graph