Extract test-logic into Tunit::TestCase