fixed event generator test bug