tests: introduce testcase subclass