Fix test logic to work around core Angular change

Angular uses Array.prototype.forEach in angular.forEach now (apparently it didn't before) so it's getting called in Phantom when the test is run. I guess we just need to make sure angular.forEach is called.