I wouldn't sweat this one too much. It's in a test case, which is not intended to be architecturally elegant, and can be easily fixed. If this were in non-test code I would be much more worried.