Fix unit tests.

The SO_KEEPALIVE broke some tests.