Fixed a typo. Not sure how this typo got committed.
Improved the tree testing