Added BFS tests with graphs.