build unit test etcd keys in a method