Add exception types to exception tests

Change-Id: Ibf5c89f1fd4e994c25b91e29e2f20dcb1165f091
diff --git a/tests/cd.cpp b/tests/cd.cpp
index bcc1dab..ffa4bbf 100644
--- a/tests/cd.cpp
+++ b/tests/cd.cpp
@@ -275,6 +275,6 @@
                 input = "cd example:twoKeyList[number=4][name=abcd]";
             }
         }
-        REQUIRE_THROWS(parser.parseCommand(input, errorStream));
+        REQUIRE_THROWS_AS(parser.parseCommand(input, errorStream), InvalidCommandException&);
     }
 }