writing socket tests, every good boy write tests before coding