BFS fully tested