Only require QUnit during tests

QUnit should only be required when tests are run using Grunt.