The Trouvé group for spaces of test functions