CMS-3979 Implement tests for thymeleaf module. Removed old usage.