simple thread pool test code