Oh, the generation test template can simply be a function