complete tests for manual websocket handling