Add deadlock test case.