add close_channel test code