testing communicating with the API over UDP socket