fix bug in the download-test