Text this: Testing the agreement of trees with internal labels