Added procedures to test Tree