Add test for complete login flow.