DownloadFile improved: do not download when already same content exists

+ Added tests