modified mock test according with ipAddress retrieval fix