MDL-47214 General: Multiple IP addresses in X-Forwarded-For Fixed

Added unit test for getremoteaddr().