added tests and jshintrc