add metadata substitution test for mapserver/mapserver#4877