at test cases wait until client connect to zookeeper instance

at test cases wait until client connect to zookeeper instance