jshint and adding tests