Change formulation of test and exlude Gruntfile.js from being run by Jasmine

This suppresses an error message and makes the tests more sensible.