Add test for Dijkstra's algorithm.