testing event driven part