Not with an
Index, but using Heading
styles for your test names, they can show up in the navigation pane. Use the navigation pane of the heading styles and delete your relevant headings from that pane. That will delete the content between that name and the next one.
Why use Microsoft Word’s built-in heading styles? by Shauna Kelly
You can also collapse the text following your headings in the template and do the same thing by deleting the headings within the document itself. Then expand the text.