test functions for dijkstra_all added.