Tests for https://github.com/mapbox/mapbox-gl-js/issues/577