parser: Fix multiple events
parser: improve tester