Unit tests for userData in events (issue #203)