fixing RegisterEmailServiceTest