add tests for mapserver/mapserver#4837