Added test for when ip address is an object and not a string