refactor Gruntfile.js, Tests do not work why because methods are async