Jshint fixes
Add first tests