Dijkstra tests pass and appears to work