add event dispatcher tests