Add exception types to exception tests

Change-Id: Ibf5c89f1fd4e994c25b91e29e2f20dcb1165f091
diff --git a/tests/presence_containers.cpp b/tests/presence_containers.cpp
index 91dc234..5a43ce9 100644
--- a/tests/presence_containers.cpp
+++ b/tests/presence_containers.cpp
@@ -106,7 +106,7 @@
             input = "list[quote='lol']";
         }
 
-        REQUIRE_THROWS(parser.parseCommand("create " + input, errorStream));
-        REQUIRE_THROWS(parser.parseCommand("delete " + input, errorStream));
+        REQUIRE_THROWS_AS(parser.parseCommand("create " + input, errorStream), InvalidCommandException&);
+        REQUIRE_THROWS_AS(parser.parseCommand("delete " + input, errorStream), InvalidCommandException&);
     }
 }