improved network address test