Find out which hotfixes to apply for your Plone version at the Plone Hotfixes Website.
The hotfixes are defined in hotfixes.js. See also the Plone version tests.
Install and run the tests with mocha:
$ brew install npm
$ npm install
$ node_modules/mocha/bin/mocha