added connection reset for tests on osx