Test proper error messages are returned from ExcludeMimeType validator
Make message templates working properly in PHP 5.5 by defining them in the class itself (see PHP#63976)