added tests, depends on HUnit

cabal install hunit