complete test for event module.