Added a test for adding duplicate edges and vertices to the graph.