refactor(leaflet): unit tests