etcdserver: add tests for Set and Dir=true/false