add test for legend with keyimage

mapserver/mapserver#4808