tying in cabal test functionality