Added unit test for downloads