improving test threading