fix jshint errors in test.js