 
       context 'GET /api/tools', ->
         before (done) ->
-          request.get "#{serverURL}/api/tools", (err, res) =>
+          request.get "#{helper.base_url}/api/tools", (err, res) =>
             @body = res.body
             @tools = parseJSON @body
             done()

      context 'GET /api/:user/subscription/medium/sign', ->
        before (done) ->
          request.get
            uri: "#{serverURL}/api/#{@user}/subscription/medium/sign"
          , (err, res, body) =>
            @body = body
            done err


        context 'GET /api/:user/datasets/:id', ->
          it 'returns a single dataset', (done)  ->
            request.get "#{helper.base_url}/api/#{@user}/datasets/#{@dataset.box}", (err, res) ->
              newDataset = parseJSON res.body
              should.exist newDataset.box
              done()

          it 'dataset has a created date', (done)  ->
            request.get "#{helper.base_url}/api/#{@user}/datasets/#{@dataset.box}", (err, res) ->
              newDataset = parseJSON res.body
              Date.parse(newDataset.createdDate).should.be.above(0)
              done()

          it 'dataset has a creator short name', (done)  ->
            request.get "#{helper.base_url}/api/#{@user}/datasets/#{@dataset.box}", (err, res) ->
              newDataset = parseJSON res.body
              'ickletest'.should.equal newDataset.creatorShortName
              done()

          it 'dataset has a creator display name', (done)  ->
            request.get "#{helper.base_url}/api/#{@user}/datasets/#{@dataset.box}", (err, res) ->
              newDataset = parseJSON res.body
              'Ickle Test'.should.equal newDataset.creatorDisplayName
              done()

          it "404 errors if the dataset doesn't exist", (done) ->
            request.get "#{helper.base_url}/api/#{@user}/datasets/NOTEXIST", (err, res) ->
              res.should.have.status 404
              done()

          it "403 errors if the user doesn't exist", (done) ->
            request.get "#{helper.base_url}/api/MRINVISIBLE/datasets/#{@dataset.box}", (err, res) ->
              res.should.have.status 403
              done()

