add tests for the template_body function