health: Improve test coverage

I'm closing over with the httptest.NewServer. This came up in another PR, where there was concern about side effects. So I did the same thing here, but if in this case I should remove the reassignment I'm happy to do it.