BFS/DFS main test