In the classical setup, we start with a commutative C-star algebra of continuous functions on a manifold: C0(M). We pass to a dense subset, like C∞(M), and use this as our space of test functions.
We can generalize this by replacing our C-star algebra with a von Neumann algebra, and taking a dense subalgebra as our test functions.
Smooth functions that vanish at infinity Compactly supported smooth functions Schwartz functions Bounded smooth functions
Compactly supported smooth functions Schwartz functions Bounded smooth L2 functions