testCase.testGroup is GROUP_A, GROUP_B, etc. I think the second half of this conditional can be removed. (It's not there in the bottom module logic)