fix bugs of leavesiterator
add more test cases of treenode