title: karma/jasmine/angular toHaveBeenCalledWith is really called
body: <p>in  my app for instance I've got</p>
  
  <pre><code>$rootScope.$emit('loggedin',data.user);
  $rootScope.$on('loggedin', function(event,user) {
      console.log('called');           
  });
  </code></pre>
  
  <p>in my test</p>
  
  <pre><code>spyOn($rootScope, '$emit');
  
  var response = {
      "success":1,
      "user":{
          "id":1,
          "email":"lama@test.test",
          "fullname":"Lama user",
          "username":"lamauser",
          "groups":["Users"]
      },
      "logged":1
  };
  $httpBackend.when('POST', '/api/v1/user').respond(200,response);
  $scope.save();
  $httpBackend.flush();
  expect($scope.errors.length).toEqual(0);
  expect($rootScope.$emit).toHaveBeenCalledWith('loggedin',response.user);
  </code></pre>
  
  <p>both the app and test works well
  but in the test I never see the console message
  <em>called</em></p>
  
  <p>so I'm wondering if during the test $on is never triggered 
  or I miss something.</p>