Remove the dependency on view output format and just test the template name