Append import and main for gen. tests