Skip the session check during tests; session is not initialized.