Dijkstra's algorithm, organized tests