Add unit tests for DFS traversal graphs