Added test structure to dfs.