Updated TestPlugin to reflect new events