make unit tests work on osx