Form angular 1.5 we can use $componentController for unit test the controllers. It will be nice if we can update the repo to use it. https://docs.angularjs.org/api/ngMock/service/$componentController