-setvars and -runtests do not fail gracefully when given bad data