I think this test should be making use of mock $httpBackend to check that the event has raised before the content is returned.