TST: move tests functions out of a TestCase class