zookeeper test code, include server and client