diff --git a/crm/pengine/testcases/stonith-0.dot b/crm/pengine/testcases/stonith-0.dot
new file mode 100644
index 0000000000..0dfd1e4d14
--- /dev/null
+++ b/crm/pengine/testcases/stonith-0.dot
@@ -0,0 +1,65 @@
+digraph "g" {
+ size = "30,30"
+"ocf_192.168.100.183_stop_0 c001n03" [ style=bold color="green" fontcolor="orange" ]
+"rsc_c001n07_stop_0 c001n03" [ style=bold color="green" fontcolor="orange" ]
+"ocf_192.168.100.183_stop_0 c001n05" [ style=bold color="green" fontcolor="orange" ]
+"rsc_c001n05_stop_0 c001n05" [ style=bold color="green" fontcolor="orange" ]
+"ocf_192.168.100.181_stop_0 c001n03" [ style=bold color="green" fontcolor="black" ]
+"ocf_192.168.100.181_stop_0 c001n05" [ style=bold color="green" fontcolor="black" ]
+"ocf_192.168.100.181_start_0 c001n02" [ style=bold color="green" fontcolor="black" ]
+"ocf_192.168.100.181_monitor_5000 c001n02" [ style=bold color="green" fontcolor="black" ]
+"heartbeat_192.168.100.182_stop_0 c001n03" [ style=bold color="green" fontcolor="black" ]
+"heartbeat_192.168.100.182_start_0 c001n02" [ style=bold color="green" fontcolor="black" ]
+"heartbeat_192.168.100.182_monitor_5000 c001n02" [ style=bold color="green" fontcolor="black" ]
+"ocf_192.168.100.183_start_0 c001n02" [ style=bold color="green" fontcolor="black" ]
+"ocf_192.168.100.183_monitor_5000 c001n02" [ style=bold color="green" fontcolor="black" ]
+"group-1_start_0" [ style=bold color="green" fontcolor="orange" ]
+"group-1_running_0" [ style=bold color="green" fontcolor="orange" ]
+"group-1_stop_0" [ style=bold color="green" fontcolor="orange" ]
+"group-1_stopped_0" [ style=bold color="green" fontcolor="orange" ]
+"rsc_c001n05_start_0 c001n07" [ style=bold color="green" fontcolor="black" ]
+"rsc_c001n05_monitor_5000 c001n07" [ style=bold color="green" fontcolor="black" ]
+"rsc_c001n07_start_0 c001n07" [ style=bold color="green" fontcolor="black" ]
+"rsc_c001n07_monitor_5000 c001n07" [ style=bold color="green" fontcolor="black" ]
+"child_DoFencing:4_monitor_20000 c001n08" [ style=bold color="green" fontcolor="black" ]
+"stonith c001n03" [ style=bold color="green" fontcolor="black" ]
+"stonith c001n05" [ style=bold color="green" fontcolor="black" ]
+"group-1_stop_0" -> "ocf_192.168.100.183_stop_0 c001n03" [ style = bold]
+"group-1_stop_0" -> "ocf_192.168.100.183_stop_0 c001n05" [ style = bold]
+"heartbeat_192.168.100.182_stop_0 c001n03" -> "ocf_192.168.100.181_stop_0 c001n03" [ style = bold]
+"heartbeat_192.168.100.182_stop_0 c001n03" -> "ocf_192.168.100.181_stop_0 c001n05" [ style = bold]
+"ocf_192.168.100.181_stop_0 c001n03" -> "ocf_192.168.100.181_start_0 c001n02" [ style = bold]
+"ocf_192.168.100.181_stop_0 c001n05" -> "ocf_192.168.100.181_start_0 c001n02" [ style = bold]
+"group-1_start_0" -> "ocf_192.168.100.181_start_0 c001n02" [ style = bold]
+"ocf_192.168.100.181_start_0 c001n02" -> "ocf_192.168.100.181_monitor_5000 c001n02" [ style = bold]
+"ocf_192.168.100.183_stop_0 c001n03" -> "heartbeat_192.168.100.182_stop_0 c001n03" [ style = bold]
+"ocf_192.168.100.183_stop_0 c001n05" -> "heartbeat_192.168.100.182_stop_0 c001n03" [ style = bold]
+"ocf_192.168.100.181_start_0 c001n02" -> "heartbeat_192.168.100.182_start_0 c001n02" [ style = bold]
+"heartbeat_192.168.100.182_stop_0 c001n03" -> "heartbeat_192.168.100.182_start_0 c001n02" [ style = bold]
+"heartbeat_192.168.100.182_start_0 c001n02" -> "heartbeat_192.168.100.182_monitor_5000 c001n02" [ style = bold]
+"ocf_192.168.100.183_stop_0 c001n03" -> "ocf_192.168.100.183_start_0 c001n02" [ style = bold]
+"ocf_192.168.100.183_stop_0 c001n05" -> "ocf_192.168.100.183_start_0 c001n02" [ style = bold]
+"heartbeat_192.168.100.182_start_0 c001n02" -> "ocf_192.168.100.183_start_0 c001n02" [ style = bold]
+"stonith c001n03" -> "ocf_192.168.100.183_start_0 c001n02" [ style = bold]
+"stonith c001n05" -> "ocf_192.168.100.183_start_0 c001n02" [ style = bold]
+"ocf_192.168.100.183_start_0 c001n02" -> "ocf_192.168.100.183_monitor_5000 c001n02" [ style = bold]
+"group-1_stop_0" -> "group-1_start_0" [ style = bold]
+"group-1_stopped_0" -> "group-1_start_0" [ style = bold]
+"ocf_192.168.100.183_start_0 c001n02" -> "group-1_running_0" [ style = bold]
+"group-1_start_0" -> "group-1_running_0" [ style = bold]
+"ocf_192.168.100.181_stop_0 c001n03" -> "group-1_stopped_0" [ style = bold]
+"ocf_192.168.100.181_stop_0 c001n05" -> "group-1_stopped_0" [ style = bold]
+"group-1_stop_0" -> "group-1_stopped_0" [ style = bold]
+"rsc_c001n05_stop_0 c001n05" -> "rsc_c001n05_start_0 c001n07" [ style = bold]
+"stonith c001n05" -> "rsc_c001n05_start_0 c001n07" [ style = bold]
+"rsc_c001n05_start_0 c001n07" -> "rsc_c001n05_monitor_5000 c001n07" [ style = bold]
+"rsc_c001n07_stop_0 c001n03" -> "rsc_c001n07_start_0 c001n07" [ style = bold]
+"stonith c001n03" -> "rsc_c001n07_start_0 c001n07" [ style = bold]
+"rsc_c001n07_start_0 c001n07" -> "rsc_c001n07_monitor_5000 c001n07" [ style = bold]
+"ocf_192.168.100.181_stop_0 c001n03" -> "stonith c001n03" [ style = bold]
+"ocf_192.168.100.181_stop_0 c001n05" -> "stonith c001n03" [ style = bold]
+"heartbeat_192.168.100.182_stop_0 c001n03" -> "stonith c001n03" [ style = bold]
+"stonith c001n05" -> "stonith c001n03" [ style = bold]
+"ocf_192.168.100.181_stop_0 c001n03" -> "stonith c001n05" [ style = bold]
+"ocf_192.168.100.181_stop_0 c001n05" -> "stonith c001n05" [ style = bold]
+}
diff --git a/crm/pengine/testcases/stonith-0.exp b/crm/pengine/testcases/stonith-0.exp
new file mode 100644
index 0000000000..fb8e908ae1
--- /dev/null
+++ b/crm/pengine/testcases/stonith-0.exp
@@ -0,0 +1,343 @@
+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