CvApplicationTemplateDaoImplTest refactored