Events tests and fixes.