Event writing test