Add a simple test to get/set the socket option. I didn't try to test the actual lingering behavior. That sounds complicated and I'm not sure if it's even doable on a loopback connection.