Grunt: Update test-on-node task to remove globals

Ref #582
Closes #586