test file composes and diagnoses a tree in a basic uncalled function