etcdserver/etcdhttp: add test coverage for serveRaft
etcdserver: simplify logic flow