Introduce a convenient thread wrapper, yield in test, refactor the pool a bit.