private void RemoveTestTemplate(Sitecore.Data.Database db)
 {
     using (var disabler = new Sitecore.SecurityModel.SecurityDisabler())
     {
         var template = db.GetItem("/sitecore/templates/user defined/user defined item");
         template.Delete();
     }
 }
 private void CreateTestTemplate(Sitecore.Data.Database db)
 {
     using (var disabler = new Sitecore.SecurityModel.SecurityDisabler())
     {
         string templatexml = File.ReadAllText(System.Environment.CurrentDirectory + @"\..\..\xml\TestTemplate.xml").ToString();
         db.GetItem("/sitecore/templates/user defined").Paste(templatexml, false, PasteMode.Merge);
     }
 }