Add test harness for creating deadlocks