Variant 4: Test generator