Added connection and subscription tests cases

closed #1 add multi-subscription support
fixed #2 zero length user/passwd