diff --git a/cilium-net-daemon/daemon/endpoint_test.go b/cilium-net-daemon/daemon/endpoint_test.go
index <HASH>..<HASH> 100644
--- a/cilium-net-daemon/daemon/endpoint_test.go
+++ b/cilium-net-daemon/daemon/endpoint_test.go
@@ -26,3 +26,11 @@ func (s *DaemonSuite) TestIsValidID(c *C) {
 	c.Assert(isValidID("0x12"), Equals, false)
 	c.Assert(isValidID("./../../../etc"), Equals, false)
 }
+
+func (s *DaemonSuite) TestGoArray2C(c *C) {
+	c.Assert(goArray2C([]byte{0, 0x01, 0x02, 0x03}), Equals, "{ 0x0, 0x1, 0x2, 0x3 }")
+	c.Assert(goArray2C([]byte{0, 0xFF, 0xFF, 0xFF}), Equals, "{ 0x0, 0xff, 0xff, 0xff }")
+	c.Assert(goArray2C([]byte{0xa, 0xbc, 0xde, 0xf1}), Equals, "{ 0xa, 0xbc, 0xde, 0xf1 }")
+	c.Assert(goArray2C([]byte{0}), Equals, "{ 0x0 }")
+	c.Assert(goArray2C([]byte{}), Equals, "{  }")
+}
Added Test to goArray2C