Allow Namespace to be Set When Setting an API Host

- Fix bug that prevents a namespace from being set at the same time the API is set
- Add test to ensure this case always works
1 file changed