[refactoring] fix .cabal so that tests should work

More import refactoring
4 jobs for 238-dev-async-job-worker in 67 minutes and 56 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Cabal
passed #16158
cabal

00:29:15

 
  Stack
passed #16159
stack

00:12:21

 
  Bench
manual #16160
allowed to fail manual
bench
 
  Test
failed #16161
test

00:26:18

 
Name Stage Failure
failed
test Test
calling stop core nlp - done
Test suite garg-test-hspec: FAIL
Test suite logged to:
/builds/gargantext/haskell-gargantext/dist-newstyle/build/x86_64-linux/ghc-9.4.8/gargantext-0.0.7.4.2/t/garg-test-hspec/opt/test/gargantext-0.0.7.4.2-garg-test-hspec.log
0 of 1 test suites (0 of 1 test cases) passed.
Error: cabal: Tests failed for test:garg-test-hspec from gargantext-0.0.7.4.2.

Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1