Mock around gating at request-time.
Add and test for gating at request-time.