update BFS test and callback