Fixed tests to be compatible with latest symfony/validator