Added bfs test.