Starting to unit test the handshake handler.