Add abstract method to TestCase class

That makes it clearer why the class is abstract, and what has to be overwritten.

Basically a follow-up for #2583. I literally wanted to propose that today, too.