passing test for downloadFile