Added a check to see that it can compare 2 trees.