Don't run tests macro for cli test applications

Make buck app name consistent with maven app name

Change-Id: I847f1d53a1c3a884ea46adf96de6828661a791d7
diff --git a/apps/test/distributed-primitives/BUCK b/apps/test/distributed-primitives/BUCK
index f50042f..27f47e4 100644
--- a/apps/test/distributed-primitives/BUCK
+++ b/apps/test/distributed-primitives/BUCK
@@ -7,11 +7,12 @@
     '//core/store/serializers:onos-core-serializers',
 ]
 
-osgi_jar_with_tests (
+osgi_jar (
     deps = COMPILE_DEPS,
 )
 
 onos_app (
+    app_name = 'org.onosproject.distributedprimitives',
     title = 'Distributed Primitives Test App',
     category = 'Test',
     url = 'http://onosproject.org',
diff --git a/apps/test/election/BUCK b/apps/test/election/BUCK
index 9822348..c191bce 100644
--- a/apps/test/election/BUCK
+++ b/apps/test/election/BUCK
@@ -7,7 +7,7 @@
     '//core/store/serializers:onos-core-serializers',
 ]
 
-osgi_jar_with_tests (
+osgi_jar (
     deps = COMPILE_DEPS,
 )