Update linted files and fix some jshint issues

Add `tests/*.js` to list of _linted_ files and fix it's issues.