standardize and simplify maybeerror tests, to keep in sync with UnParse-js
slight reformatting to match UnParse-js