valid_events test now logs transitions that cause a crash.