Implemented PerSqlTemplatesTestTemplateFactory. refs #477