a bit of refactoring of WebServiceAPIUnitTest.
Revert change to "bad URL" test in WebServiceAPIUnitTest.test_call().