split tests into seperate dir, fixed cabal file and changed to MIT