Its just a nit, but I'd test media.updateRecord here, rather than testing it in handleClientUpgrade()