add tests of specHelper.mockService leading to cascade of bug fixes
and simplification of gulpfile