tests for login and logout