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

Added test for #35