Wrote unit test for file download