Fixed test and dijkstra's