fixed test for download_file