throw ValueError from parse_xxx defs
update tests