fixed jshint
fix tests