Added more tests to the dijkstra feature.
Fixed infinite loop if source/destination node isn't in graph.