clean and lint tests, enable jshint on tests

Ran fixjsstlye on all the tests, fixed any outstanding errors, and
enabled jshint for checking tests in continuous integration.
Merge pull request #2762 from mbroadst/lint-tests

clean and lint tests, enable jshint on tests