Adding a test method to create a websocket connection

Just a helper method to connect to the test web server.