unit tests, small fix and some optimizations for voldemort.cluster.Node