TST: use network decorator to avoid opening sockets