Make aggregator unit tests pass

When enabled, redfish aggregation causes unit tests to fail.

Tested: Unit tests now pass with redfish aggregation enabled.

Change-Id: Ieb92a4ad0a4be3ce757c816a676e0a641cd7c85a
Signed-off-by: Ed Tanous <ed@tanous.net>
diff --git a/test/redfish-core/lib/service_root_test.cpp b/test/redfish-core/lib/service_root_test.cpp
index 01e48a1..ab30e70 100644
--- a/test/redfish-core/lib/service_root_test.cpp
+++ b/test/redfish-core/lib/service_root_test.cpp
@@ -109,7 +109,17 @@
     EXPECT_FALSE(
         json["ProtocolFeaturesSupported"]["DeepOperations"]["DeepPATCH"]);
     EXPECT_EQ(json["ProtocolFeaturesSupported"]["DeepOperations"].size(), 2);
-    EXPECT_EQ(json.size(), 21);
+
+    size_t expectedSize = 21;
+
+    if (BMCWEB_REDFISH_AGGREGATION)
+    {
+        EXPECT_EQ(json["AggregationService"]["@odata.id"],
+                  "/redfish/v1/AggregationService");
+        expectedSize++;
+    }
+
+    EXPECT_EQ(json.size(), expectedSize);
 }
 
 TEST(HandleServiceRootGet, ServiceRootStaticAttributesAreExpected)