tests: allow parameters to be specified to CongestionMarkStrategy

refs #4327

Change-Id: If33efc23cc0e4d85aaa99cfcb5411e42b409c899
diff --git a/tests/other/fw/congestion-mark-strategy.cpp b/tests/other/fw/congestion-mark-strategy.cpp
index 3e2ccce..25e00cb 100644
--- a/tests/other/fw/congestion-mark-strategy.cpp
+++ b/tests/other/fw/congestion-mark-strategy.cpp
@@ -34,7 +34,9 @@
 NFD_REGISTER_STRATEGY(CongestionMarkStrategy);
 
 CongestionMarkStrategy::CongestionMarkStrategy(Forwarder& forwarder, const Name& name)
-  : BestRouteStrategy2(forwarder, name)
+  // Specifying BestRouteStrategy2's own name in its constructor prevents an exception from occuring
+  // when specifying parameters to CongestionMarkStrategy
+  : BestRouteStrategy2(forwarder, BestRouteStrategy2::getStrategyName())
   , m_congestionMark(1)
   , m_shouldPreserveMark(true)
 {