unit test for plain http + websockets added
improved (automatic) connection handling