encodeQuery PingQ testcase