zookeeper test code, server and client