https://github.com/angular/angular.js/blob/master/test/ng/rootScopeSpec.js#L1570