Fix test failures caused by making treeData private.