unit test and fix for mode switch

Change-Id: I6585adb2857a0ed16ceae605a7f763318c946136
diff --git a/app/src/test/resources/3 b/app/src/test/resources/3
new file mode 100644
index 0000000..a25567f
--- /dev/null
+++ b/app/src/test/resources/3
@@ -0,0 +1,13 @@
+{
+      "id": "3",
+      "cTag": 7,
+      "sTag": 8,
+      "nasPortId": "1/1/2",
+      "port": 130,
+      "slot": 7,
+      "hardwareIdentifier": "ff:aa:dd:cc:bb:ee",
+      "ipAddress":"30.30.30.30",
+      "nasId":"MNO-NASID",
+      "circuitId":"circuit567",
+      "remoteId":"remote567"
+}