Quote by defunc
A test function in distribution theory is simply an infinitely smooth function, which is zero outside some interval.

Not just some interval, but a compact interval. In other words, test functions are smooth functions with
compact support.