Stubbing out the ipv4 addr correctly in tests