add test to tree traversal