Enhance test
Enhance test

Create some helper functions and refactor the health check test.

Signed-off-by: Hu Keping <ce660952c949ad2751377b45317337be332e80ac@huawei.com>

johnsandiford/notary,umayr/notary,andrewhsu/notary,endophage/notary,docker/notary,jfrazelle/notary,umayr/notary,vdemeester/notary,HuKeping/notary,dqminh/notary,jfrazelle/notary,johnsandiford/notary,vdemeester/notary,HuKeping/notary,docker/notary,johnsandiford/notary,vdemeester/notary,endophage/notary,andrewhsu/notary,docker/notary,jfrazelle/notary,andrewhsu/notary,HuKeping/notary,endophage/notary,umayr/notary,dqminh/notary,dqminh/notary