complete test cases&jshint