Apply JSHint to test files.

closes #2666
- Add new jshint:test task
- Fix jshint errors
Merge pull request #3953 from halfdan/2666-jshint-test

Apply JSHint to test files.