add class level validation tests (mapserver/mapserver#4877)