Added tests for login.