unify loopback- and network- test harnesses, one if/else to switch