test negotiation