New tests for BFS and DFS.