adds automatic test based on templates for api base