By Brianmcd
The example does not run without $rootScope.$digest();. Actually the first test does not complain. Which is one reason to do unit tests.
$rootScope.$digest();