BFS test, pass as reference the visitor variables