it('should return the specified error when updating the specified model', function () {

        var error = new Error('update error');
        error.statusCode = 400;