unit test for http post and ws-client