diff --git a/src/test/java/com/intel/jndn/management/FaceStatusTest.java b/src/test/java/com/intel/jndn/management/FaceStatusTest.java
index 5a587a6..c81d9b2 100644
--- a/src/test/java/com/intel/jndn/management/FaceStatusTest.java
+++ b/src/test/java/com/intel/jndn/management/FaceStatusTest.java
@@ -124,7 +124,7 @@
     else {
       Face forwarder = new Face("localhost");
 
-      // build management Interest packet; see http://redmine.named-data.net/projects/nfd/wiki/StatusDataset
+      // build management Interest packet; see <a href="http://redmine.named-data.net/projects/nfd/wiki/StatusDataset">http://redmine.named-data.net/projects/nfd/wiki/StatusDataset</a>
       Interest interest = new Interest(new Name("/localhost/nfd/faces/list"));
       interest.setMustBeFresh(true);
       interest.setChildSelector(Interest.CHILD_SELECTOR_RIGHT);
@@ -145,7 +145,7 @@
 
   /**
    * Convert hex string to bytes; special thanks to
-   * http://stackoverflow.com/questions/140131
+   * <a href="http://stackoverflow.com/questions/140131">http://stackoverflow.com/questions/140131</a>
    *
    * @param s
    * @return
diff --git a/src/test/java/com/intel/jndn/management/FibEntryTest.java b/src/test/java/com/intel/jndn/management/FibEntryTest.java
index 1cd5897..4f25227 100644
--- a/src/test/java/com/intel/jndn/management/FibEntryTest.java
+++ b/src/test/java/com/intel/jndn/management/FibEntryTest.java
@@ -72,7 +72,7 @@
   public static void main(String[] args) throws Exception {
     Face forwarder = new Face("localhost");
 
-    // build management Interest packet; see http://redmine.named-data.net/projects/nfd/wiki/StatusDataset
+    // build management Interest packet; see <a href="http://redmine.named-data.net/projects/nfd/wiki/StatusDataset">http://redmine.named-data.net/projects/nfd/wiki/StatusDataset</a>
     Interest interest = new Interest(new Name("/localhost/nfd/fib/list"));
     interest.setMustBeFresh(true);
     interest.setChildSelector(Interest.CHILD_SELECTOR_RIGHT);
diff --git a/src/test/java/com/intel/jndn/management/IntegrationSuite.java b/src/test/java/com/intel/jndn/management/IntegrationSuite.java
index 5f32711..c328e95 100644
--- a/src/test/java/com/intel/jndn/management/IntegrationSuite.java
+++ b/src/test/java/com/intel/jndn/management/IntegrationSuite.java
@@ -50,12 +50,12 @@
 
     // create a new route
     NFD.register(face, "udp4://127.0.0.1:56363", new Name("/my/test/route"), 999);
-    
+
     // check that route is created
     boolean found = false;
-    for(RibEntry route : NFD.getRouteList(face)){
+    for (RibEntry route : NFD.getRouteList(face)) {
       logger.info("Found route: " + route.getName().toUri());
-      if(route.getName().equals(new Name("/my/test/route"))){
+      if (route.getName().equals(new Name("/my/test/route"))) {
         found = true;
       }
     }
diff --git a/src/test/java/com/intel/jndn/management/LocalControlHeaderTest.java b/src/test/java/com/intel/jndn/management/LocalControlHeaderTest.java
index 7686616..400d10c 100644
--- a/src/test/java/com/intel/jndn/management/LocalControlHeaderTest.java
+++ b/src/test/java/com/intel/jndn/management/LocalControlHeaderTest.java
@@ -47,7 +47,7 @@
 
     // enable incoming face ID header
     NFD.enableLocalControlHeader(forwarder, LocalControlHeader.INCOMING_FACE_ID);
-    
+
     // use and verify
     Data data = SimpleClient.getDefault().getSync(forwarder, new Name("/localhost/nfd"));
     long faceId = data.getIncomingFaceId();
diff --git a/src/test/java/com/intel/jndn/management/RibEntryTest.java b/src/test/java/com/intel/jndn/management/RibEntryTest.java
index 8a63abb..b0b757c 100644
--- a/src/test/java/com/intel/jndn/management/RibEntryTest.java
+++ b/src/test/java/com/intel/jndn/management/RibEntryTest.java
@@ -74,7 +74,7 @@
   public static void main(String[] args) throws Exception {
     Face forwarder = new Face("localhost");
 
-    // build management Interest packet; see http://redmine.named-data.net/projects/nfd/wiki/StatusDataset
+    // build management Interest packet; see <a href="http://redmine.named-data.net/projects/nfd/wiki/StatusDataset">http://redmine.named-data.net/projects/nfd/wiki/StatusDataset</a>
     Interest interest = new Interest(new Name("/localhost/nfd/rib/list"));
     interest.setMustBeFresh(true);
     interest.setChildSelector(Interest.CHILD_SELECTOR_RIGHT);
