Add stand alone finite machine definition.
Add tests for standalone machine.