Deadlock test