update test.js by jshint errors