Test global in .jshintrc file.
Fix some tests and code.