It seems slightly unnecessary to have 1 almost identical class per test case here? Can't you do it with parametrize?