add switch show and unit tests for TaskScheduler