testing partially transitioned to tmpdir and temporary files