Added test for thymeleaf/thymeleaf#269 and thymeleaf/thymeleaf#277
Added test for thymeleaf/thymeleaf#257 and thymeleaf/thymeleaf#278