Tree creation handles errors includes in test.