Add more unit tests (login and settings)