getConnected and unittest
add 2 more unittest on getConnected
unitest common.js
unique, no support for array