Fix AC::TemplateAssertions instance variables not resetting.

Fixes https://github.com/rails/rails/issues/16119.
Merge pull request #16234 from tgxworld/fix_template_assertion_for_integration_test

Fix AC::TemplateAssertions instance variables not resetting.