Use create task in generate tests