add test to configureHealthCheck method.