Test for handshake