[DF-4577] Some new unit tests implemented and found unwanted DownloadManager behavior. Fixed.