     km.record 'Visited Homepage'
 
 
-    request = Batch.process testQueue, 'fakeApiKey', 'fakeApiSecret', 'fakeProductGUID'
+    request = KM.batchProcess testQueue, 'fakeApiKey', 'fakeApiSecret', 'fakeProductGUID'
     endpoint = request.output.pop().split(/\n/)[0].trim()
     endpoint.should.equal 'POST /v1/products/fakeProductGUID/tracking/e?_signature=L5JAfOuh62iWmHCZMa2iT03L4doPGMM4kSOhoJNNIoM%3D HTTP/1.1'
 

should = require 'should'
KM     = require '../../src/kissmetrics'
Batch  = require '../../src/kissmetrics-batch'

testQueue =
  queue: []

    km = new KM 'apiKey', 'evan@example.com', {queue: testQueue}
    km.record('these').record('should').record('batch')

    request = KM.batchProcess testQueue, 'exApiKey', 'exApiSecret', 'exProductGUID'
    request.output.pop().should.match /X-KM-ApiKey: exApiKey/

  it 'should use API host', ->
