By making all modifications through lchan_set_state we can easily add code to verify the state transition.