Example: DownloadTask(url: url, directory: '/testDir') used to throw, now stores 'testDir' in directory