Finish the email function testing