fix test to work across ethernet and loopback