add new elements to factories.xml in templates and tests, refs #1394