clean up with jshint
clean up with jshint
fixing test case