more test for state machine