Added tests for DownloadService

fixes #340
Merge pull request #348 from jprovaznik/donwload_service_tests

Added tests for DownloadService