tests for websocket handshake and frames parsing