More tests, and changed failed login handling