Draft: Split the netmgr_test into udp_test and tcp_test, add mock udp tests
NOTE: This grew into something larger than it started. Let's finish the review here, but then a new MR with more descriptive branch name should be made.
Closes #2271 (closed)
Edited by Ondřej Surý