add unit tests for download service