*8854* Added tests for getRemoteAddr trust_x_forwarded_for config setting

Added unit tests for http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8854
Added. That's why I wouldn't use references in such a situation. Savings are negligible. Potential for confusion and bugs are fairly large.