Added Unit Tests

* Removed success & failed action
Rename to XDynamicStateMachine