Diagnosing Tree Problems