Added a unit test to Vertex.