add unit tests for health checks