Add tests for CurrentThreadScheduler