Add tests for login.