net_test: cover failure cases