Added tests for WebSockets API calls.