Added some tests on events