Fix getFileExtension() and download, update and upload tests