Improve client registration tests and add client update test