Testing sub-tree merging