Extract AbstractTestCase