Passing tests for login and logout