Reduce the number of tests on OSX.

Initial work by me and fixes by @samth.