Is there a template for the declaration of autonomy?
Yes, see: "Questions before the exam". How these can be integrated into your own examination course as a "Moodle test" prepared by the support team from the template course is explained here: Importing templates into the examination course.