mocked tests for ZkConnection