added test for thread-pool