Add tests for login and logout methods