Added tests for addVertex, removeVertex, addEdge and union

Doesn't this have to be `getVertices().union(newVertex).distinct()` like below?