tests(leaflet): improve testing for better coverage