[minor] When using dgram, respond in next tick
[test refactor] Separate creating server and client in tests