I still can't see how emulators or unit tests can provide meaningful results in a real time environment.
Which possible errors do you intend to find how in your code?
In case of a state machine, do you want to check each state transition under all possible circumstances, in all possible sequences of events?
Have you ever found an existing unit test for any state machine?