tests for logging in/logging out