Test for session state transitions