module.exports = function(gulp, settings) {
    var appBundlerFn = require("./util-bundlers.js")(gulp, settings).appBundlerFn;

    /**
     * Run all test build tasks.
     **/
    gulp.task('build-tests', ['copy-test-lib', 'bundle-test-lib', 'ui-test'], function () {
        // Lastly, bundle the test code (app/code/test/...).
        return appBundlerFn({
            entries: './app/code/test/testIndex.js',
            paths: settings.extraPaths,
            isDebug: settings.isDebug,
            vendorLibraries: settings.libraryModules,
            destinationName: 'test.bundle.js',
            destinationDir: settings.testOutputPath
        });
    });
};

module.exports = function(gulp, settings) {
    var appBundlerFn = require("./util-bundlers.js")(gulp, settings).appBundlerFn;

    /**
     * Run all test build tasks.
     **/
    gulp.task('build-tests', ['copy-test-lib', 'bundle-test-lib', 'ui-test'], function () {
        // Lastly, bundle the test code (app/code/test/...).
        return appBundlerFn({
            entries: './app/code/test/testIndex.js',
            paths: 'app/code/util/',
            isDebug: settings.isDebug,
            vendorLibraries: settings.libraryModules,
            destinationName: 'test.bundle.js',
            destinationDir: settings.testOutputPath
        });
    });
};

--- 
+++ 
@@ -8,7 +8,7 @@
         // Lastly, bundle the test code (app/code/test/...).
         return appBundlerFn({
             entries: './app/code/test/testIndex.js',
-            paths: 'app/code/util/',
+            paths: settings.extraPaths,
             isDebug: settings.isDebug,
             vendorLibraries: settings.libraryModules,
             destinationName: 'test.bundle.js',
Use extraPaths configuration for browserify
