Hi Koen,
Don't know of any tool with the specific purpose of writing "generic test classes" or whatever you are requesting. You can do this workaround you suggest either in a class or in a program (report):
REPORT ztestv .
CLASS UNIT_TEST DEFINITION FOR TESTING.
PUBLIC SECTION.
METHODS:
TEST_TABLE.
ENDCLASS.
CLASS unit_test IMPLEMENTATION.
METHOD test_table.
* your code here, than menu->program->execute->unit test
ENDMETHOD.
ENDCLASS.