[fix] use proper key with host and create a new registry client if we pass in a private host
[test] log errors appropriately