Adds DFS with test