Tests for logging in and logging out.