avoid duplicate compilation of library and executable

moved Main.hs to src-cmd
removed extra dependencies
moved from test-framework to tasty

test suites now work