Add new test for connection close calls in different scenarios.
Add some more variations