[TASK] first behat test for event emitting
[TASK] adding document nodes yields correct events
[TASK] improve behat tests