fix test on osx