Implemented PerSqlTemplatesTestTemplateWritingHandler. refs #477