Dijkstra algorithm tested