Fix test for Mac