Added leniency-related tests for thymeleaf/thymeleaf#177