should not send email if there is no exception + tests