Issue #7: Add test for login