tests/parsetext: support generating events using a clause processor chain.