See line 136 in test_sample_condition_5() below
Sorry, the set of tests is a bit messy.