changed test to pass the generator through to better mimic the final control flow of the downloader