fix the fragment mode

The fragment mode doesn't work right now, because the flag is read before its evaluated.
Do you really need a field or can it be a local variable of the test method?