Corrected unit test for successful login