Testing the handshake