run network test on the loopback interface only

We have a sandbox for building packages that doesn't allow this and it
seems to be a good idea in general not to bind to all interfaces, some
of which will be reachable from other machines to run simple tests.