Testing subtrees