Retrofit tests

Also move NatsClient construction code over from runtime-metrics-server in aid of writing these tests

[#79030198]