Refactor of tests in fences/network/configure_test.go