Test the program Tree