kite/protocol: add Query() method
kite/protocol: add test for Query() method