Add triggerEvent method
Update tests