Add test for email login flow