P4Runtime unit tests for api, ctl, model modules

Change-Id: Iac1b1ef6e274c355ce3a26cffbd8adcb39694f69
diff --git a/protocols/p4runtime/api/BUCK b/protocols/p4runtime/api/BUCK
index 8b740b84..fd05763 100644
--- a/protocols/p4runtime/api/BUCK
+++ b/protocols/p4runtime/api/BUCK
@@ -5,6 +5,13 @@
     '//incubator/grpc-dependencies:grpc-core-repkg-' + GRPC_VER,
 ]
 
-osgi_jar(
+TEST_DEPS = [
+    '//core/api:onos-api-tests',
+    '//lib:TEST',
+    '//protocols/p4runtime/api:onos-protocols-p4runtime-api',
+]
+
+osgi_jar_with_tests(
     deps = COMPILE_DEPS,
-)
\ No newline at end of file
+    test_deps = TEST_DEPS,
+)