add test when duplicating a NamedLayer

c.f. mapserver/mapserver#4703