Fix broken threaded test