How to unit test an Angular 1 controller with injected dependencies.