Fix tests running on osx.