Testing the functionality of Subtrees