Added exception handling for byte ranges on file download
Fixed bugs in File downloadFile, added units tests for File downloadFile method