Testing network code