Added better tests for DFS() and Cycles().