Fix test_download_flat_image