Fixed test: wait for login