Refactoring template name generic detail view
Refactoring tests get template name