Test if trees are binary