Fix email sending test