add test for named thread factory