unit test refactoring for grunt cli