refactored assertContains/assertNotContains
refactored assertTemplateUsed and assertTemplateNotUsed