sfn_test_state function

Accepts the definition of a single state and executes it