Added state machine test3. Unexpected, but interesting effects.