Unit test: tree_test.go