Attempt to make tests more stable by checking the state of the channel when receiving