Generate template for test