add test for legend scale-dependant rendering

mapserver/mapserver#4725