fixes to websocketclient library, updated test