refactor in WebServiceTest