work with cbtree for tests