Fix failing test on OSX