For example, this code is untested. Similarly here.
For clarity, the focus of this issue is only the InvalidArgument errors in registry-server implementation code.
Errors such as this one are harder to exercise and generally are unrelated to API usage, so they are out of scope for this issue.