test tcp write