Apply JSHint to test files.

closes #2666
- Add new jshint:test task
- Fix jshint errors
Do you want to initialize this variable here rather than down below, to follow the style you did for `createdTagSelector`?