Write test_align_raw_trace_by_event.