Fixed #7. Totally rewrite unit tests. Removed zookeeper dependencies.