add test for event module.