Update documentation for the mock $httpBackend

The example either does not work with the latest version of angular.js or it is unclear. Many comments on the documentation page for $httpBackend indicate that it is unclear. By looking at other sources I identified the issues and made some changes to make the example code work.