Fixes some tests under OSX.