[refactoring] fix .cabal so that tests should work

More import refactoring
parent 63902615
Pipeline #7039 failed with stages
in 67 minutes and 56 seconds