testing the tree creation