Added basic tests for events