Added a unit test that validates well-known deadlock scenario
Removed use of reflection