test deadlock