Add test cases for custom event