         indicator: indicator._id
       }]
 
-    Q.nfcall(
-      request.post, {
-        url: helpers.appurl('api/pages/')
-        json: true
-        body: data
-      }
-    )
-
+    Promise.promisify(request.post, request)({
+      url: helpers.appurl('api/pages/')
+      json: true
+      body: data
+    })
   ).spread( (res, body) ->
 
     # Assert expected outcomes

    assert.equal res.statusCode, 401

    done()
  ).catch((err) ->
    console.error err
    throw err
  )
)

test("PUT update when given a ID which doesn't exist throws an appropriate error", (done)->

assert = require('chai').assert
helpers = require '../helpers'
request = require('request')
Promise = require('bluebird')
url = require('url')
_ = require('underscore')
async = require('async')
