fix bug in SUB socket creation
add test cases to catch SUB bug
Merge pull request #21 from blowback/fix_subs

fix bug in SUB socket creation