Wrote a test for login().