add temporary file in tests for DownloadAgent