added tests, depends on HUnit

cabal install hunit
Merge pull request #2 from spacemanaki/unit-tests

added tests, depends on HUnit