Write tests for BFS and DFS. BFS passes its test.