add test for multiple writes on socket