leaflet works with tests without using require