       command_serve()
         .bind({})
         .then ->
-          requestPromise(
-            method: 'GET'
-            json: true
-            url: envStringBaseUrl + '/token'
-          )
-        .then ([response]) ->
-          test.equal response.statusCode, 200
-          test.equal response.body, null
-
-          requestPromise(
-            method: 'POST'
-            url: envStringBaseUrl + '/token'
-            body: {
+          got envStringBaseUrl + '/token',
+            json: true
+        .then (res) ->
+          test.equal res.statusCode, 200
+          test.equal res.body, null
+
+          got.post envStringBaseUrl + '/token',
+            json: true
+            body:
               first_name: 'mad'
               last_name: 'max'
-            }
-            json: true
-          )
-        .then ([response]) ->
-          test.equal response.statusCode, 200
-          test.ok response.body.token.length > 10
-          this.token = response.body.token
-
-          requestPromise(
-            method: 'GET'
+        .then (res) ->
+          test.equal res.statusCode, 200
+          test.ok res.body.token.length > 10
+          this.token = res.body.token
+
+          got envStringBaseUrl + '/token',
             json: true
             headers:
               authorization: "Bearer #{this.token}"
-            url: envStringBaseUrl + '/token'
-          )
-        .then ([response]) ->
-          test.equal response.statusCode, 200
-          test.deepEqual response.body,
+        .then (res) ->
+          test.equal res.statusCode, 200
+          test.deepEqual res.body,
             first_name: 'mad'
             last_name: 'max'
 
-          requestPromise(
-            method: 'GET'
+          got envStringBaseUrl + '/token',
             json: true
             headers:
               authorization: "Bearer garbagetoken"
-            url: envStringBaseUrl + '/token'
-          )
-        .then ([response]) ->
-          test.equal response.statusCode, 200
-          test.equal response.body, null
-
-          requestPromise(
-            method: 'POST'
-            url: envStringBaseUrl + '/token'
-            body: {
+        .then (res) ->
+          test.equal res.statusCode, 200
+          test.equal res.body, null
+
+          got.post envStringBaseUrl + '/token',
+            json: true
+            body:
               first_name: 'bubba'
               last_name: 'zanetti'
-            }
-            json: true
-          )
-        .then ([response]) ->
-          test.equal response.statusCode, 200
-          test.ok response.body.token.length > 10
-          token = response.body.token
-
-          requestPromise(
-            method: 'GET'
+        .then (res) ->
+          test.equal res.statusCode, 200
+          test.ok res.body.token.length > 10
+          token = res.body.token
+
+          got envStringBaseUrl + '/token',
             json: true
             headers:
               authorization: "Bearer #{token}"
-            url: envStringBaseUrl + '/token'
-          )
-        .then ([response]) ->
-          test.equal response.statusCode, 200
-          test.deepEqual response.body,
+        .then (res) ->
+          test.equal res.statusCode, 200
+          test.deepEqual res.body,
             first_name: 'bubba'
             last_name: 'zanetti'
 
-          requestPromise(
-            method: 'GET'
+          got envStringBaseUrl + '/token',
             json: true
             headers:
               authorization: "Bearer #{this.token}"
-            url: envStringBaseUrl + '/token'
-          )
-        .then ([response]) ->
-          test.equal response.statusCode, 200
-          test.deepEqual response.body,
+        .then (res) ->
+          test.equal res.statusCode, 200
+          test.deepEqual res.body,
             first_name: 'mad'
             last_name: 'max'
 

      shutdown
      envStringBaseUrl
    ) ->
      command_serve()
        .then ->
          requestPromise(
            method: 'GET'
            url: envStringBaseUrl + '/redirect'
            followRedirect: false
          )
        .then ([response]) ->
          test.equal response.statusCode, 302
          test.equal response.headers.location, '/go-here'
          shutdown()
        .then ->
          test.done()

      command_serve()
        .then ->

          got envStringBaseUrl + '/method'
        .then (res) ->
          test.equal res.body, 'get'

          got.post envStringBaseUrl + '/method'
        .then (res) ->
          test.equal res.body, 'post'

          got.put envStringBaseUrl + '/method'
        .then (res) ->
          test.equal res.body, 'put'

          got.patch envStringBaseUrl + '/method'
        .then (res) ->
          test.equal res.body, 'patch'

          got.delete envStringBaseUrl + '/method'
        .then (res) ->
          test.equal res.body, 'delete'

          shutdown()
        .then ->
