fixed unit tests for threaded downloader