fixed jshint and some testing