Fixed test for user login