Fix tests on OS X