refactor config variables
add zookeeper unit test