Would you mind elaborating on this? I've worked out the case where ##f## is injective below, but I don't see how one would define composition where ##f## vanishes at more than one point.
If ##d, g, f## are test functions and ##f## is injective and ##f(x_0)=0## then
$$\langle d\circ f, g...