fix deadlock test