Unit test for BaseTree