Fix cabal test errors