test('should be a function and return a function', () => {
    expect(action).toEqual(expect.any(Function));
    expect(action()).toEqual(expect.any(Function));
  });