ShortestPath class updated with test class added