add test for synchronous threads