Fix tests for OSX