Added a test case for the DFS