etcdserver/etcdhttp: add tests for serveKeys

use http://golang.org/pkg/encoding/json/#Marshal