test fix, localhost cannot send email

avoid emailing in unit tests