tests for 'begin' and 'end' events