code style fix
added test for download task
added assertions