tests for sent and received