Fix server_test closed channel bug