bfs and queue tested