fix regression where TestImportExport was failing

it ran afoul of the new "can't call open() twice" rule for
HeadlessWorkspace