MDL-38184 repository_upload: Adding tests