fix bug for etcd test