Finally I was able to create a unit test for the lecturer controller injecting factories, and mocking $scope and $http.

Refactoring was needed in the lecturer application module making the example even richer (unit tests must drive architectural changes).