test for the email function in beta