Use request.Session and mock cleanup in tests.