jshint fixes on test