fix cabal build and test
fix travis build