Implemented test for PerTableTemplatesTestTemplateBuildHandler and PerForeignKeyTemplatesTestTemplateBuildHandler. refs #474