threadpool with test