Add regression test for event order.