refactored for Cloud.update test