           }
 
           ComputeProvider.create client, computeProviderOptions, (err, machine) ->
-            expect(err).to.not.exist
+            expect(err?.message).to.not.exist
             callback { machine, stack }
 
       ]


    models.forEach (model) ->

      fn = switch model
        when 'Credential'       then _createCredential
        when 'Provisioner'      then _createProvisioner
        when 'StackTemplate'    then _createStackTemplate

          data = _.extend data, data_
          queue.next()

    # returning data variable after requested models created
    queue.push -> callback data

    daisy queue
