add test for mapserver/mapserver#4873