Test code for threadpool. Initial commit.