revised threadpooltest