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

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