Address comments for XfrmController::Init

-Use a cleaner string comparison
-Add a check to the unit test

Bug: 74560705
Test: atest netd_integration_test
Merged-In: Ia1fe2b7691a904696baefb186a7233a681412263
Change-Id: Ia1fe2b7691a904696baefb186a7233a681412263
(cherry picked from commit ac62cbd5217ccda2364d5cf942db41f699637fe9)
diff --git a/tests/binder_test.cpp b/tests/binder_test.cpp
index 341a7b9..a099620 100644
--- a/tests/binder_test.cpp
+++ b/tests/binder_test.cpp
@@ -317,6 +317,7 @@
     ASSERT_TRUE(allocateIpSecResources(false, &spi));
 
     status = XfrmController::Init();
+    ASSERT_TRUE(status.ok());
     ASSERT_TRUE(allocateIpSecResources(true, &spi));
 
     // Clean up