Add failing test for scenario when action_dispatch.remote_ip key in env_hash returns an object and not a string, but responds to :to_s
Fix when search for an ip-adress does not return a string