Test functions realizing projected translations in every smooth representation
Fix the source's global arithmetic datum and Hermitian space $V$. Let $G_f$ be its finite adelic unitary group, $K_v$ the lattice stabilizers, and $T$ finite local type data supported on $S$. Choose the prescribed auxiliary split place $u\notin S$, split lattice frame, uniformizer $\varpi$, and Iwahori subgroup $I_u$. Let $\mu_v$ be Haar measures with $\mu_v(K_v)=1$ for almost every $v$, and $\nu$ a Haar measure on $G_f$ satisfying the product integral formula for restricted tensor test functions.
There is a family $e=(e_v)$ of locally constant compactly supported functions, equal to $1_{K_v}$ for almost every $v$, with the following properties. Write $e_f(g)=\prod_v e_v(g_v)$. In every smooth complex representation $\sigma$, any operator $P=\sigma(e_f)$ satisfies $P^2=P$ and is nonzero if $\sigma$ contains a vector of type $T$.
For every $g\in G_f$ there is another such family $f=(f_v)$ with $f_u$ left $I_u$-invariant and $$\sigma(f_f)=P\sigma(g)P$$ in every smooth $\sigma$ and for every integral operator $P=\sigma(e_f)$. For every strictly dominant diagonal torus element $t$ defined by $\varpi$, replacing $f_u$ by the auxiliary frame's Iwahori double-coset test function gives an allowed test family of type $T$, bi-$K_v$-invariant at every $v\notin S\cup\{u\}$.
The type datum consists of split frames at $S$ and irreducible finite-dimensional representations of their residue-field general linear groups. A type vector is spherical outside $S$ and belongs to the indicated type-isotypic spans at $S$. An allowed test family has each $v\in S$ component $e_{T,v}*h_v*e_{T,v}$ for some locally constant compactly supported $h_v$, has the prescribed auxiliary double-coset component at $u$, is locally constant compactly supported elsewhere and equals $1_{K_v}$ almost everywhere. Convolutions and integral operators use the displayed measures. The global datum includes its CM field, lattices, ranks, characters, coefficient and period data.