extending publish test
adding close to server ping test
adding a rejection when websocket server triggers error
removing onError listener when server connects.. Just to clean up
Fitting tests to brokr changes