Fixed failing tests on OSX.