add tests for the healthz package

Currently there are no tests for the healthz package. This patch adds
an initial set of tests and improves test coverage.