Make simple parser test more extensible.
Allow subclasses to throw a parser exception when flattening arguments.