     assert.equal res.statusCode, 401
 
     done()
-  ).catch((err) ->
-    console.error err
-    throw err
-  )
+  ).catch(done)
 )
 
 test("PUT update when given a ID which doesn't exist throws an appropriate error", (done)->

        indicator: indicator._id
      }]

    Q.nfcall(
      request.post, {
        url: helpers.appurl('api/pages/')
        json: true
        body: data
      }
    )

  ).spread( (res, body) ->

    # Assert expected outcomes


        done()
      )
    ).catch(done)

  async.series([helpers.createSection, helpers.createSection], createPageWithSection)
)
