             results.Cart.should.have.property 'CartId'
             results.Cart.should.have.property 'HMAC'
             results.Cart.CartItems.CartItem.should.be.an.Array
+            cartId = results.Cart.CartId
+            cartHMAC = results.Cart.HMAC
             done()
 
   describe 'when credentials are invalid', ->

          results.Cart.should.have.property 'CartId'
          results.Cart.should.have.property 'HMAC'
          results.Cart.CartItems.CartItem.should.be.an.Array

    describe 'when callback is passed', ->
      it 'should return results from amazon', (done)->

          err.Cart.Request.should.have.property 'Errors'
          err.Cart.Request.Errors.should.be.an.Array
          done()
