Yield call added

More unit tests for thread wrapper