Fix health_test.go

If there is any error happened in the preparation for the test, we should terminate the test rather than keep it going.