Adds eunit tests checking the format of validation errors