add: test code for peer.send_packet