test: consolidate the multiple versions of send_and_*