Allow to stop local input at a given event number.
Avoid a race condition when LS changes.
Don't stop the sender thread when stopping generating.
Adjust sleep time when no triggers in order to actually stop within 1 second.
Discard incoming messages when not processing data.
Set the last event number to be produced to allow a clean stop.
Allow to specify several tests.
Set last event number to allow a proper stop.
Make test more robust.