some tests of event methods and bug fixes