test send and receive