Test for thymeleaf/thymeleaf#265 and thymeleaf/thymeleaf#266