etcdserver/etcdhttp: add simple test for peers send

where do you use the code field?