more unit test for tree