Added a small unit test that validates well-known deadlock scenario