title: Angular - Mocha - Tests Fail when I add multiple Controllers to the same Module
body: <p>When I have one controller attached to a module, I can use mocha, karma to test it successfully.  But when I add two controllers to the same module, the tests fail.  Why is that?</p>
  
  <p>I have 2 controllers defined on the same module.  I can manually test the controllers and they work.</p>
  
  <pre><code>src/app/itemListController.js
  angular.module('lazyLoad', [])
    .controller('ItemListController', ['$scope', function ($scope) {
  ...
  }]);
  
  src/app/invoiceController.js
  angular.module('lazyLoad', [])
    .controller('InvoiceController', ['$scope', function ($scope) {
  ...
  }]);
  </code></pre>
  
  <p>And 2 unit-tests:</p>
  
  <pre><code>test/app/itemListController.mocha.js
  'use strict';
  describe('testing movies', function () {
    var scope;
    var fixture;
  
    beforeEach(module('lazyLoad'));
  
    beforeEach(inject(function ($rootScope, $controller) {
      scope = $rootScope.$new();
      fixture =  $controller('ItemListController', {$scope: scope});
    }));
  
    it('....', function() {});
  });
  
  test/app/invoiceController.mocha.js
  'use strict';
  describe('testing movies', function () {
    var scope;
    var fixture;
  
    beforeEach(module('lazyLoad'));
  
    beforeEach(inject(function ($rootScope, $controller) {
      scope = $rootScope.$new();
      fixture =  $controller('InvoiceController', {$scope: scope});
    }));
  
    it('....', function() {});
  });
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>PhantomJS 1.9.8 (Mac OS X 0.0.0) testing movies "before each" hook: workFn FAILED
      the object {
        "line": 1761
        "message": "[ng:areq] Argument 'ItemListController' is not a function, got undefined
      http://errors.angularjs.org/1.4.1/ng/areq?p0=ItemListController&amp;p1=not%20a%20function%2C%20got%20undefined"
        "name": "Error"
  </code></pre>
  
  <p>Now if I change the module-name for the invoiceController.js and invoiceController.mocha.js to say invoiceM then both tests work.</p>
  
  <p>I must be doing something wrong...</p>