Add test for https://github.com/mapserver/mapserver/issues/4800