Added ThreadPool Scheduler and test for it