fix up tests for temporary-file