Fix test on OSX