refine test_traverse