Created unit test for webapiProvider.