unittest for channel_send/channel_recv() api