testing key exchange