Cleanup tests.
Split up TBStateMachine tests into topics simple, nested and concurrency.