Allow specifying target for get

Change-Id: I4d8c6e7e445a613a384ef16f06448c101e37abcc
diff --git a/tests/path_completion.cpp b/tests/path_completion.cpp
index 511d922..be676c9 100644
--- a/tests/path_completion.cpp
+++ b/tests/path_completion.cpp
@@ -213,6 +213,27 @@
             // The expectedContextLength is 13, because the completion isn't actually generated after the slash.
             expectedContextLength = 13;
         }
+
+        SECTION("get -")
+        {
+            input = "get -";
+            expectedCompletions = {"-datastore "};
+            expectedContextLength = 0;
+        }
+
+        SECTION("get --datastore ")
+        {
+            input = "get --datastore ";
+            expectedCompletions = {"operational", "running", "startup"};
+            expectedContextLength = 0;
+        }
+
+        SECTION("get --datastore running /second")
+        {
+            input = "get --datastore running /second";
+            expectedCompletions = {"second:amelie/"};
+            expectedContextLength = 6;
+        }
     }
 
     SECTION("describe completion")