test for sending data