 
   describe "tms tile source", ->
     url = 'http://c.tiles.mapbox.com/v3/examples.map-szwdot65/{Z}/{X}/{Y}.png'
-    source = new TMSTileSource(url)
+    source = new TMSTileSource.Model(url)
 
     it "should get tiles for extent correctly", ->
       T.expect_mercator_tile_counts(source)

    tile_options =
      url : 'http://mt0.google.com/vt/lyrs=m@169000000&hl=en&x={X}&y={Y}&z={Z}&s=Ga'

    source = new WMTSTileSource(tile_options)

    it "should get tiles for extent correctly", ->
      T.expect_mercator_tile_counts(source)

  describe "quadkey tile source", ->
    tile_options =
      url : 'http://t0.tiles.virtualearth.net/tiles/a{Q}.jpeg?g=854&mkt=en-US&token=Anz84uRE1RULeLwuJ0qKu5amcu5rugRXy1vKc27wUaKVyIv1SVZrUjqaOfXJJoI0'
    source = new QUADKEYTileSource.Model(tile_options)

    it "should get tiles for extent correctly", ->
      T.expect_mercator_tile_counts(source)
