Added tests and example with WS