Added TestEncodeRequestPayload