Add test for login
Merge pull request #6 from ares/issue-4462

Add test for login