Fix test run on OSX