[added] ability to test for deadlocks with mock objects