fix send_email test errors