Added some event test code.