Fixed broken unit tests caused by my AngularJS upgrade.