Add test for email downcasing and fix uncaught double dots in email