Test websocket connection
Refactor
More descriptive errors
Run tests against our local server