Fixed minor bug in Vertex class
Wrote some tests for the Vertex class