Added handshake test