Fixing tests for all libraries and build. JSHint.