Refactor UI tests to be simpler
Factor out dotted split
Don't create a tree when udf data is empty

fixes #1077 on github
PR fixup: limit splitting where desired
PR Fixup: Add UI Test