Fix test failure that seems to occur on os x only.