improve threaded test