UT: Resolved the errors in Event Test Cases

Resolved the errors in Event Test Cases