added event handler in test_helper