functional test for displaying a label of the name of the legend on map