some jshint & test cleanups