added utility to check for noun equality of trees