Exception handling and tests for UnitWebService