Completed DownloadAgent.
Removed a method in DownloadAgent used only in tests. Removed the test also.