Add test for server closed connection.