Added functionality and tests for send_ping.