Getting cabal to build the test properly