Thymeleaf globalErrors for Form ErrorBinding

I have changed the code for the requirements from https://github.com/thymeleaf/thymeleaf-spring3/pull/21. Is implementation of code correct?

I have created tests under https://github.com/lightszentip/thymeleaf-tests/commits/2.1-dev. 
But the project thymeleaf-tests has not a branch for thymeleaf 2.1.0.