encodeQuery GetPeersQ and AnnouncePeerQ test cases