Tests for UDP
Some reformating
Move some common code for testing to the __init__
Fileobj test