More tests
Add more informative error when login fails
Refactoring