fix email_auth unit testing