os net unit tests

some unit tests for os_net.
only Linux (no Windows)