added test for sendto()