Added a test for the tree printer