refine event testing