Add new test for login exception