Reconfigured cabal file to use new Cabal test framework.

Now run tests with

cabal configure --enable-tests
cabal build
cabal test