WS test code added