Subtree test