more unit test coverage of framing and websocket