Fixed TCP tests on Windows.