AngularJS not being executed in unit tests