added test with TCP server