added BFS, DFS, fixed tests