     data = {
       role: 'Bilge Cleaner'
     }
-    verify 'put', "users/#{@user._id}", 200, data, (result) ->
+    verify 'put', "users/#{@user?._id}", 200, data, (result) ->
       should.exist result?.user
       result.user.should.include data
       done()
 
   it 'should respond to DELETE /users/:id', (done) ->
-    verify 'del', "users/#{@user._id}", 200, null, (result) ->
+    verify 'del', "users/#{@user?._id}", 200, null, (result) ->
 
       if Factory.connected
         User.count (err, count) ->


describe 'model', ->
  it 'should save data', ->
    User.create Factory.userData, (err, user) ->
      should.not.exist err
      should.exist user

      done()

  it 'should respond to GET /users/:id', (done) ->
    verify 'get', "users/#{@user?._id}", 200, null, (result) ->
      should.exist result?.user, 'expected {user: {}}'
      result.user.should.include Factory.userData
      done()
