Implemented PerRepositoryTemplatesTestTemplateBuildHandler. Refactored test to avoid repeating myself. refs #475