Add test for _completeUpload