port Test.hs to Tasty and refactor for other api changes