Test `bfs-shortest-paths`