fixed test, and added jshint