Add test cases: polygon & DFS tree