Added more tests for thymeleaf/thymeleaf#303.