Allow testing of assert_template with the :file option.

This is a patch for a regression introduced in #8316