Improving test-localAddress.js