using temporary files in scripttest