Fix shortest_path_test