Added code to test the traversal order for BasicTree.