Switch to Face::getIoContext() and simplify some code

Change-Id: Iba49171f6e59ead02283e8f975219ab97fcbeb00
diff --git a/tests/test-adjacency-list.cpp b/tests/test-adjacency-list.cpp
index 1a2ca87..1f4158b 100644
--- a/tests/test-adjacency-list.cpp
+++ b/tests/test-adjacency-list.cpp
@@ -38,7 +38,7 @@
   const std::string ADJ_NAME_1 = "testname";
   const std::string ADJ_NAME_2 = "testname2";
 
-//adjacent needed to test adjacency list.
+  // adjacent needed to test adjacency list
   Adjacent adjacent1(ADJ_NAME_1);
   Adjacent adjacent2(ADJ_NAME_2);
 
@@ -71,7 +71,7 @@
   AdjacencyList adjList;
   adjList.insert(adj1);
 
-  std::list<Adjacent>::iterator adjIter = adjList.findAdjacent(faceUri);
+  auto adjIter = adjList.findAdjacent(faceUri);
   BOOST_CHECK(adjIter != adjList.end());
 }