Added deadlock test case.