some unit test specs added and tweaks to .jshintrc