Move cleanup into teardown, delete obsolete code.
Merge pull request #15709 from zuhao/refactor_actionview_compiled_templates_test

Move cleanup into teardown, delete obsolete code.