test for bfs.h