Fix tests in OS X