fix tests on osx