add tests for mapserver/mapserver#4883