fixed the email registration unit tests