Issue #9: adding test to avoid user to give non-leaflet objects on custom layer