     }
       do (path,to) ->
         it 'with [' + path + '] to ' + to, ->
-          assert.equal new Path(path).to(to), corepath.join path, to
+          assert.equal buildPath(path).to(to), corepath.join path, to
 
   # path.subpath
   describe 'subpath', ->

    }
      do (path,test) ->
        it "with '#{path}'[#{test.start}, #{test.end}]", ->
          assert.equal new Path(path).subpath(test.start, test.end).path, test.result


  # path.part(#)

          expected =
            if path? then corepath.basename(path, corepath.extname path)
            else corepath.basename '.'
          assert.equal buildPath(path).filename(), expected
          # test a second time because value is cached
          assert.equal buildPath(path).filename(), expected, 'cached value should be the same'


  # path.basename # accept an extension to exclude?
