wrote another tree test, and changed makeTreeFromNodeSlice to return nil on empty slice