     j.add quest.cookie 'cookie=test; domain=.example.com'
     j.add quest.cookie 'badcookie=bad; domain=example.com'
     j.add quest.cookie 'badcookie2=bad; domain=nottest.example.com'
-    quest { uri: 'http://example.com/test', jar: j }, (err, resp, body) ->
+    quest { uri: 'http://test.example.com/test', jar: j }, (err, resp, body) ->
       assert.ifError err, "did not expect error"
+      scope.done()
       done()

    j.add quest.cookie 'cookie=test; domain=example.com'
    quest { uri: 'http://example.com/test', jar: j }, (err, resp, body) ->
      assert.ifError err, "did not expect error"
      done()

  it 'supports cookies with a wildcard domain', (done) ->
    nock('http://test.example.com')
      .matchHeader('cookie', 'cookie=test')
      .get('/test')
      .reply(200, '')

      done()

  it 'supports cookies with a domain', (done) ->
    scope = nock('http://example.com')
      .matchHeader('cookie', 'cookie=test')
      .get('/test')
      .reply(200, '')
