Add tests for the ws api
Add tests for the ws api