fixed tests and jshint