fixing problem with updated options parsing (was mishandling unknown options)

adding test spec (not yet used, but can be run manually)