gulp test task fixed
code refactor