state machine tests