Add deadlock test unit.

This test will check to make sure that the deadlock detection is properly being executed and reporting to a file.