describe('Testing index controller', function () {
    var controller, scope;

    beforeEach(function () {
        // load the module
        module('app');

        inject(function($controller, $rootScope){
            scope = $rootScope.$new();

            controller = $controller('IndexCtrl', {
                $scope: scope
            });
        });

    });

    it('should define the index controller', function() {
        expect(controller).toBeDefined();
    });

    it('should define default source as adminMongo', function(){
        expect(scope.source).toBeDefined();
        expect(scope.source).toEqual('/adminMongo');
    })

    it('should define the number of tabs (6) on the web page', function(){
        expect(scope.tabs).toBeDefined();
        expect(scope.tabs.length).toEqual(6);
    })

    it('should define the function changeSource()', function(){
        expect(scope.changeSource).toBeDefined();
    })

    it('should update scope source variable when changeSource() is called', function(){
        scope.changeSource('/sources');
        expect(scope.source).toEqual('/sources');
        expect(scope.source).not.toEqual('/adminMongo');
    })

});

@@ -511,26 +511,23 @@
 urce as 
-adminMongo
+sources
 ', funct
@@ -612,34 +612,31 @@
 ).toEqual('/
-adminMongo
+sources
 ');%0A    %7D)%0A%0A
@@ -677,17 +677,17 @@
 f tabs (
-6
+5
 ) on the
@@ -798,9 +798,9 @@
 ual(
-6
+5
 );%0A 

update test cases to reduce number of tabs