fixed flaky tests on osx