OC-2333: Unit test for UploadFile