added tests for tcp connections