add tests for download