fix tests for the new opts.file handling