Added event test code.