Added code coverage and refactored Gruntfile.