create common file to share between tests

chain connection and socket calls

fix asylumfunk#12
Merge pull request #12 from asylumfunk/issue/12

create common file to share between tests