               204:
         """
         ramlParser.load(raml)
-        .then (raml) ->
-          callback = sinon.stub()
-          callback.returns(done())
-
-          sinon.stub console, 'warn'
-          addTests raml, tests, hooks, callback, testFactory, false
-        .catch (err) ->
-          console.error err
-          done(err)
+          .then (raml) ->
+            callback = sinon.stub()
+            callback.returns(done())
+
+            sinon.stub console, 'warn'
+            addTests raml, tests, hooks, callback, testFactory, false
+          .catch (err) ->
+            console.error err
+            done(err)
         return
 
       after () ->

        before (done) ->
          ramlFile = "#{RAML_DIR}/machines-1_get_1_post.raml"
          ramlParser.loadFile(ramlFile)
          .then (raml) ->
            callback = sinon.stub()
            callback.returns(done())

            addTests raml, tests, hooks, null, callback, testFactory, true
          .catch (err) ->
            console.error err
            done(err)
          return

        after () ->

        before (done) ->
          ramlFile = "#{RAML_DIR}/machines-1_get_1_post.raml"
          ramlParser.loadFile(ramlFile)
            .then (raml) ->
              callback = sinon.stub()
              callback.returns(done())

              addTests raml, tests, hooks, callback, testFactory, false
            .catch (err) ->
              console.error err
              done(err)
          return

        after () ->
