added test for directed bfs