Remove dead code from TBSMStateMachine and TBSMParallelState.

Improved test coverage as well.
Updated TBStateMachineNestedTests.
Code cleanup.