Stub state machine for testing