 
   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 = 
        x_origin_offset : 0
        y_origin_offset : 0
      offset_source = new TMSTileSource(tile_options)
      expect(offset_source.get('x_origin_offset')).to.be.equal(0)
      expect(offset_source.get('y_origin_offset')).to.be.equal(0)


      tile_options =
        url : 'http://c.tile.openstreetmap.org/{Z}/{X}/{Y}.png'

      source = new TMSTileSource.Model(tile_options)

      [xmin, ymin, xmax, ymax, level] = [-90.283741, 29.890626, -89.912952,
                                          30.057766, 11]
