 define ['ngmocks', 'lodash', 'expect', 'moment', 'modeling', 'helpers'],
   (ng, _, expect, moment, modeling) ->
     describe 'Unit Testing the Modeling Service', ->
-      modelings = null
-      modeling = null
-      
       # The mock objects.
       mock =
         protocol:

                 " registration protocol")
            .to.equal(mock.protocol.registration._id)

      describe 'Result', ->
        result = null


            }
          ]

      subject = null
      modelings = null
      modeling = null

      beforeEach ->
        # Fake the modeling service module.
        ng.module('qiprofile.modeling')
        inject ['Modeling', (Modeling) ->
            subject = _.cloneDeep(mock.subject)
            modelings = Modeling.collect(subject)
            try
              modeling = modelings[0]
            catch TypeError
