Refactored so that ParametrizedTestCase is a real and reusable superclass.