Test onSending callbacks