Create setup and cleanup tests for stc dist tests

Change-Id: Ie977697a645be82e26ebf13d2510eb891a7c8b8c
(cherry picked from commit 4ad86cfda8f0dc2e87a1ef2ec0a48506c09274a0)
diff --git a/tools/test/scenarios/dist-test.xml b/tools/test/scenarios/dist-test.xml
index 9c2f068..6788d62 100644
--- a/tools/test/scenarios/dist-test.xml
+++ b/tools/test/scenarios/dist-test.xml
@@ -18,21 +18,32 @@
           description="ONOS distributed primitives setup">
     <group name="Distributed-Primitives">
 
-        <import file="${ONOS_SCENARIOS}/dist-map.xml"/>
-        <dependency name="Distributed-Primitive-Map" requires="Setup"/>
+        <import file="${ONOS_SCENARIOS}/dist-setup.xml"/>
+        <dependency name="Distributed-Primitives-Setup" requires="Setup"/>
 
-        <import file="${ONOS_SCENARIOS}/dist-value.xml"/>
-        <dependency name="Distributed-Primitive-Value" requires="Distributed-Primitive-Map"/>
+        <group name="Distributed-Primitives-Internal" requires="Distributed-Primitives-Setup">
 
-        <import file="${ONOS_SCENARIOS}/dist-counter.xml"/>
-        <dependency name="Distributed-Primitive-Counter" requires="Distributed-Primitive-Value"/>
+            <import file="${ONOS_SCENARIOS}/dist-map.xml"/>
+            <dependency name="Distributed-Primitive-Map"/>
 
-        <import file="${ONOS_SCENARIOS}/dist-leader.xml"/>
-        <dependency name="Distributed-Primitive-Leader" requires="Distributed-Primitive-Counter"/>
+            <import file="${ONOS_SCENARIOS}/dist-value.xml"/>
+            <dependency name="Distributed-Primitive-Value"/>
 
-        <import file="${ONOS_SCENARIOS}/dist-work-queue.xml"/>
-        <dependency name="Distributed-Primitive-WorkQueue" requires="Distributed-Primitive-Leader"/>
+            <import file="${ONOS_SCENARIOS}/dist-counter.xml"/>
+            <dependency name="Distributed-Primitive-Counter"/>
+
+            <import file="${ONOS_SCENARIOS}/dist-leader.xml"/>
+            <dependency name="Distributed-Primitive-Leader"/>
+
+            <import file="${ONOS_SCENARIOS}/dist-work-queue.xml"/>
+            <dependency name="Distributed-Primitive-WorkQueue"/>
+
+        </group>
+
+        <import file="${ONOS_SCENARIOS}/dist-teardown.xml"/>
+        <dependency name="Distributed-Primitives-Teardown" requires="Distributed-Primitives-Internal"/>
 
     </group>
+
 </scenario>